<?php
$this_post = get_post( get_the_ID() );
$content = $this_post->post_content;
$pattern = sprintf('/\[video(.*(%s)="(\S+)")\]/', implode('|', wp_get_video_extensions()));
preg_match($pattern, $content, $matches);
$src = $matches[3];
?>

<a class="fancybox entry-link entry-link-<?php echo $slug; ?>" href="<?php echo $src; ?>" data-width="640" data-height="360"></a>
